-- cmd_sell
-- Create by panyl
-- 出售物品

function Operation.cmd_sell(classId, amount)
    -- 客户端自行出售
    if not ShopM.sellItem(classId, amount) then
        return
    end
    
    --记录起来，需要进行同步
    local v = { ["class_id"] = classId, ["amount"] = amount, };
    SyncM.addMessage("CMD_SELL", v);
    SyncM.startSync();
end